package com.hedgehoglab.fixxclipse.treeviewer.model;

import java.util.ArrayList;
import java.util.List;

public class Version extends Model {
	private String name;
	private List<Issue> issues;

	public Version(String string) {
		this.setName(string);
		
		List<Issue> is = new ArrayList<Issue>();
		is.add(new Issue("Issue in version "+ name));
		this.setIssues(is);
		
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setIssues(List<Issue> issues) {
		this.issues = issues;
	}

	public List<Issue> getIssues() {
		return issues;
	}

	@Override
	public String toString() {
		return "Version [issues=" + issues + ", name=" + name + "]";
	}
}
